import core.thread;
import core.sync.mutex;

import std.stdio;


class NClass
{
    int d;
}

class TClass
{
    void putMap(NClass v) {
        synchronized(lock){
            map[v.d] = v;
        }
    }
    
    void remove(NClass v){
        synchronized(lock){
            map.remove(v.d);
        }
    }
    private:
    NClass[int]  map;
    Mutex	lock;
}



void main()
{
    TClass tc = new TClass;
    
    

}

void addThread()
{
    
}
